package com.ding.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean;

import com.ding.service.Service;

@Configuration
public class HttpInvokerConfig {
	
	@Bean
	public HttpInvokerProxyFactoryBean hessianProxyFactoryBean() {
		HttpInvokerProxyFactoryBean factoryBean=new HttpInvokerProxyFactoryBean();
		factoryBean.setServiceUrl("http://localhost:8080/httpinvoker");
		factoryBean.setServiceInterface(Service.class);
		return factoryBean;
	}
	
}
